import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import {
  NzButtonModule,
  NzIconModule,
  NzLayoutModule,
  NzBreadCrumbModule,
  NzMenuModule,
  NzFormModule,
  NzInputModule,
  NzGridModule,
  NzDividerModule
} from "ng-zorro-antd";
import { FormsModule } from "@angular/forms";
import { RouterModule } from "@angular/router";
import { NameValidatorDirective } from "./directives/name-validator.directive";
import { ConfirmPasswordDirective } from "./directives/confirm-password.directive";

@NgModule({
  declarations: [NameValidatorDirective, ConfirmPasswordDirective],
  imports: [
    CommonModule,
    RouterModule,
    NzButtonModule,
    NzIconModule,
    NzLayoutModule,
    NzBreadCrumbModule,
    NzMenuModule,
    NzFormModule,
    NzInputModule,
    NzGridModule,
    NzDividerModule,
    FormsModule
  ],
  exports: [
    CommonModule,
    NzButtonModule,
    NzIconModule,
    NzLayoutModule,
    NzBreadCrumbModule,
    NzMenuModule,
    NzFormModule,
    NzInputModule,
    NzGridModule,
    NzDividerModule,
    FormsModule,
    NameValidatorDirective,
    ConfirmPasswordDirective
  ]
})
export class ShareModule {}
